<template>
<div>
  <div class="block">
    <el-carousel height="450px">
      <el-carousel-item v-for="item in sliders" :key="item.id">
        <img :src="item.img" />
      </el-carousel-item>
    </el-carousel>
  </div>
  <SimpleTicket/>
</div>
</template>

<script>
import SimpleTicket from '../components/SimpleTicket'
export default {
  components: {
    SimpleTicket
  },
  data() {
    return {
      sliders: [
        {
          id: 1,
          img: require("../assets/images/1.jpg")
        },
        {
          id: 2,
          img: require("../assets/images/2.png")
        },
        {
          id: 3,
          img: require("../assets/images/3.jpg")
        },
        {
          id: 4,
          img: require("../assets/images/4.jpg")
        },
      ]
    }
  },
  methods: {

  }
}
</script>

<style>
.el-carousel__item h3 {
  color: #475669;
  font-size: 14px;
  opacity: 0.75;
  line-height: 150px;
  margin: 0;
}

.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n + 1) {
  background-color: #d3dce6;
}
</style>